﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WindowsPhoneAppHost
{
    public partial class OaMainPage : PhoneApplicationPage
    {
        public OaMainPage()
        {
            InitializeComponent();
            NavigationBar navigationBar = new NavigationBar();
//            navigationBar.button1.Click += new System.Windows.RoutedEventHandler(button1_Click_1);
//            navigationBar.OkClick += new System.Windows.EventHandl(button1_Click_1);
//            grid1.Children.Add(navigationBar);
            //MessageBox.Show("This is OaMainPage!");
//            System.EventHandler handler = new System.EventHandler(button1_Click_1);
//            navigationBar.OkClick += "button1_Click_1";
        }

        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Hello world!");
        }

        private void Button6_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Hello world!");

        }

        public void button1_Click_1(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Hello world!");
        }

        private void NavigationBar_Loaded(object sender, RoutedEventArgs e)
        {

        }

        public void ShowAlert()
        {
//            NavigationBar navigationBar = new NavigationBar();
//            grid1.Children.Add(navigationBar);
            MessageBox.Show("This is OaMainPage!");
        }
    }
}